package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.WorkflowProcess;
import com.qidianit.mes.pojo.pro.WorkflowProduct;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface WorkflowProductMapper {
    ArrayList<WorkflowProduct> selectList(Long workflowId);

    int insertWorkflowProduct(WorkflowProduct workflowProduct);
    WorkflowProduct selectByProductCode(String code);
    WorkflowProduct selectById(Long id);
    int updateById(WorkflowProduct workflowProduct);
    int deleteById(Long id);
    int batchDelete(@Param("ids") Long[] ids);


    Long[] selectWorkflowIdByProductCode(String productCode);

}